package org.neuedu.chapter07_0624.demo01;

public class StaticDemo01 {
    static int num;
    static {
        num = 200;
        System.out.println("静态块");
    }

    public StaticDemo01() {
        System.out.println("构造器");
    }

    // 理解成构造器的第一句话
    {
        System.out.println("代码");
    }

    public static void main(String[] args) {
        StaticDemo01.num = 10;
    }
}
